﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WinForm
{
    public partial class BaoCaoDoanhThuForm : Form
    {
        public BaoCaoDoanhThuForm()
        {
            InitializeComponent();
        }

        private void BaoCaoDoanhThuForm_Load(object sender, EventArgs e)
        {
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DateTime ngay1 = new DateTime(dateTimePicker1.Value.Year, dateTimePicker1.Value.Month, dateTimePicker1.Value.Day, 0, 0, 0);
            DateTime ngay2 = new DateTime(dateTimePicker2.Value.Year, dateTimePicker2.Value.Month, dateTimePicker2.Value.Day, 23, 59, 59);

            this.HoaDonXuatTableAdapter.Fill(this.DataSet1.HoaDonXuat, ngay1, ngay2);

            this.reportViewer1.RefreshReport();
        }
    }
}
